<div class="modal-header" ng-if="!!settings.header">
    {{settings.header}}
</div>
<div class="modal-body">
    <div class="row" ng-if="!!settings.message">
        <div class="wrapper-lg padder-none text-center" style="width:400px;margin: auto;font-size: 16px">
            {{settings.message}}
        </div>
    </div>
    <div class="row p-l-md p-r-md">
        <form name="confirmForm" class="form-up-tb" ng-class="{'form-horizontal': !!settings.label}">
            <div class="form-group clearfix" ng-if="!settings.contentList">
                <label class="control-label col-xs-offset-1 col-xs-2" ng-if="!!settings.label"><i ng-if="!!settings.required">*</i>{{settings.label}}：</label>
                <div ng-class="{'col-xs-8': !!settings.label, 'col-xs-8 col-xs-offset-2': !settings.label}">
                    <textarea name="contentVal" ng-if="settings.isTextarea"
                        style="width: 100%;height: 66px;resize: none;border: 1px solid #ccc; border-radius: 3px;padding: 5px"
                        ng-model="confirmInfo.contentVal" maxlength="{{ settings.maxLength }}" ng-required="settings.required" yb-focus></textarea>
                    <input name="contentVal" ng-if="!settings.isTextarea"
                        style="width: 100%;border: 1px solid #ccc; border-radius: 3px;padding: 5px"
                        ng-model="confirmInfo.contentVal" maxlength="{{ settings.maxLength }}" ng-required="settings.required" yb-focus />

                    <div class="msg-block" ng-style="{top: (settings.isTextarea?71:32)+'px'}" ng-if="confirmForm.contentVal.$dirty || (confirmForm.contentVal.$invalid && submitted)">
                        <div class="error-msg" ng-if="confirmForm.contentVal.$error.required && !confirmForm.contentVal.focused">
                            <div class="msg-triangle"></div>
                            必填项，请填写
                        </div>
                    </div>
                </div>
            </div>

            <div ng-if="!!settings.contentList">
                <div class="form-group clearfix" ng-repeat="contentItem in settings.contentList track by $index">
                    <label class="control-label col-xs-offset-1 col-xs-2">{{contentItem.label}}：</label>
                    <div class="col-xs-8">
                        <textarea ng-if="contentItem.isTextarea" ng-model="contentItem.value" maxlength="200"
                            style="width: 100%;height: 66px;resize: none;border: 1px solid #ccc; border-radius: 3px;padding: 5px"></textarea>
    
                        <input ng-if="!contentItem.isTextarea" ng-model="contentItem.value" maxlength="50"
                            style="width: 100%;border: 1px solid #ccc; border-radius: 3px;padding: 5px" />
    
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="row m-t-md">
        <div class="text-center">
            <button class="btn btn-primary m-r-md" ng-class="{true:'btn-modal-large',false:'btn-modal'}[!!settings.isLargeBtn]" ng-click="ok(confirmForm.$valid)"> {{settings.okName}}</button>
            <button class="btn btn-default" ng-class="{true:'btn-modal-large',false:'btn-modal'}[!!settings.isLargeBtn]" ng-click="cancel()">{{settings.cancelName}}</button>
        </div>
    </div>
</div>
